<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button @click="list.splice(1, 0, { id: 99, name:'新来的' })">添加新的li到下标1</button>
        <ul>
            <li v-for="item in list" :key="item.id">
                <input type="text">{{ item.name }}
            </li>
        </ul>
    </div>

    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    list: [
                        { id: 32, name: '老大' },
                        { id: 43, name: '老二' },
                        { id: 59, name: '老三' },
                    ]
                }
            },
        })
    </script>
</body>
</html>